<template>
  <div class="container">
    <el-button type="danger" size="mini" @click="clear">清除缓存</el-button>
  </div>
</template>

<script>
import LocalStorage from "@/utils/localStorage.js"

export default {
  head () {
    return {
      title: `清除缓存`,
      meta:[
        // 阻止搜索引擎编入索引
        { name:'robots',content: 'noindex'}
      ]
    }
  },

  methods:{
    clear(){
      LocalStorage.clear()
      this.$message.success("已清除！");
    }
  }
}
</script>

<style lang="less" scoped>
@import './index.less';
</style>
